package com.tuanzi.loan.business.repository.wallet;

import org.springframework.data.jpa.repository.JpaRepository;

import com.tuanzi.loan.business.entity.wallet.LoanUserWallet;

public interface LoanUserWalletRepository extends JpaRepository<LoanUserWallet, Long>{
	
	/**
	 * 根据用户Id查询钱包
	 * @param userId
	 * @return
	 */
	LoanUserWallet findByUserId(Long userId);
	
	/**
	 * 根据Id查询钱包
	 * @param id
	 * @return
	 */
	LoanUserWallet findById(Long id);

}
